<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="${ctx}/static/h5/css/public/bootstrap.min.css"/>
    <link rel="stylesheet" href="${ctx}/static/h5/css/personal/family-devote.css"/>
    <title>捐赠详情</title>
</head>
<body>
<div id="familyDevote">
    <header>
        <a href="javascript:;" onclick="window.history.back()" class="go-back">
            <i class="fa fa-angle-left" aria-hidden="true"></i>
            <span>返回</span>
        </a>
        <h4>家族捐赠</h4>
    </header>
    <section class="family-devote">
        <%--<c:forEach items="${orders.content}" var="o">--%>
        <ul class="nav nav-pills tab_box">
            <li class="active">
                <a data-toggle="tab" href="#devoteCount " class="devoteCount">已有 <b>100</b>份捐赠</a>
            </li>
            <li>
                <a data-toggle="tab" href="#devoteList" class="devoteList">功臣榜</a>
            </li>
        </ul>
        <div class="tab-content">
            <!--捐赠数量-->
            <div id="devoteCount" class="tab-pane fade in active">
                <ul>
                    <c:forEach items="${donations.content}" var="donat">
                    <li class="container show-detail">
                        <input type="hidden" class="orderId" value="${donat.id}">
                        <div class="row">
                            <div class="col-xs-6 row-left">
                                    <img src="${ctx}/static/h5/images/123.jpg" alt=""/>
                                </div>
                            <div class="col-xs-6 row-right">
                                    <p><%--${ord.title}--%>${donat.title}</p>
                                    <div class="progress">
                                        <div class="progress-bar progress-bar-success" role="progressbar"
                                             aria-valuenow="60" aria-valuemin="0" aria-valuemax="100">
                                            <span class="progress-percent">50%</span>
                                        </div>
                                    </div>
                                    <div class="container">
                                        <div class="row devote-item">
                                            <div class="col-xs-6">
                                                已经<span> ${donat.realNum}</span>份捐赠 <%--已捐赠realNum--%><%--目标targetNum--%><%----%>
                                            </div>
                                            <div class="col-xs-6">
                                                目标 <span>${donat.targetNum}</span>万元
                                            </div>
                                        </div>
                                    </div>
                                </div>
                        </div>
                    </li>
                    </c:forEach>
                </ul>
            </div>
            <!--功臣榜-->
            <div id="devoteList" class="tab-pane fade">
                <ul>
                    <c:forEach items="${user}" var="use">
                        <li>
                            <a href="#">${use.name}<span class="badge pull-right">捐赠<%--${use.point}--%><span class="money-count">${use.point}</span>元</span></a>
                        </li>
                    </c:forEach>
                </ul>
            </div>
        </div>
    </section>
</div>


</body>
<script src="${ctx}/static/h5/js/public/jquery-2.2.3.min.js"></script>
<script src="${ctx}/static/h5/js/public/bootstrap.min.js"></script>
<script src="${ctx}/static/h5/js/personal/family-devote.js"></script>
</html>